package com.inspur.security.cbb3.kms.keymanager.containers.repository;

import com.inspur.security.cbb3.kms.keymanager.containers.po.ContainersBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 密钥容器表
 * @author lijunchang
 */
public interface ContainersRepository extends JpaRepository<ContainersBean, String>, JpaSpecificationExecutor<ContainersBean> {
    /**
     * 根据名称查询数量
     * @param name  名称
     * @param deleted       是否删除
     * @param creatorId 操作人
     * @return  数量
     */
    long countByNameAndDeletedAndCreatorId(String name,Boolean deleted,String creatorId);
}
